package com.test.dubbo.consumer;

import com.alibaba.dubbo.config.annotation.Reference;
import com.test.dubbo.service.ServiceAPI;
import org.springframework.stereotype.Component;

@Component
public class Provider {

    @Reference
    ServiceAPI serviceAPI;

    public void sendMessage(String msg){
        System.out.println(serviceAPI.sendMessage(msg));
    }

}
